// 副业定义

import { getValueInArray } from "../../core/utils/utils";

// 采集药草的职业
export const SideHustleCollect = {
  key: "Collect",
  text: '采集',
  // 获取默认时间
  time: 5000,
	level: 0
};

export const SideHustleLevelDefine = [
	{ num: 0, title: "一窍不通" },
	{ num: 100, title: "略懂" },
	{ num: 500, title: "入门" },
	{ num: 1000, title: "精通" },
	{ num: 2000, title: "大师" },
];

export const getSideHustleTitle = (num) => {
	return getValueInArray(SideHustleLevelDefine, num);
};

export const getSideHustleLevel = (num) => {
	return getValueInArray(SideHustleLevelDefine, num, true);
};